package com.gitee.wsl.time.chinese

import kotlin.test.Test
import kotlin.test.assertEquals

/**
 * 星座测试
 *
 * @author 6tail
 */
class XingZuoTest {
    @Test
    fun test1() {
        var solar = Solar(2020, 3, 21)
        assertEquals(solar.toYmd(), "白羊", solar.xingZuo)
        solar = Solar(2020, 4, 19)
        assertEquals(solar.toYmd(), "白羊", solar.xingZuo)
    }

    @Test
    fun test2() {
        var solar = Solar(2020, 4, 20)
        assertEquals(solar.toYmd(), "金牛", solar.xingZuo)
        solar = Solar(2020, 5, 20)
        assertEquals(solar.toYmd(), "金牛", solar.xingZuo)
    }

    @Test
    fun test3() {
        var solar = Solar(2020, 5, 21)
        assertEquals(solar.toYmd(), "双子", solar.xingZuo)
        solar = Solar(2020, 6, 21)
        assertEquals(solar.toYmd(), "双子", solar.xingZuo)
    }

    @Test
    fun test4() {
        var solar = Solar(2020, 6, 22)
        assertEquals(solar.toYmd(), "巨蟹", solar.xingZuo)
        solar = Solar(2020, 7, 22)
        assertEquals(solar.toYmd(), "巨蟹", solar.xingZuo)
    }

    @Test
    fun test5() {
        var solar = Solar(2020, 7, 23)
        assertEquals(solar.toYmd(), "狮子", solar.xingZuo)
        solar = Solar(2020, 8, 22)
        assertEquals(solar.toYmd(), "狮子", solar.xingZuo)
    }

    @Test
    fun test6() {
        var solar = Solar(2020, 8, 23)
        assertEquals(solar.toYmd(), "处女", solar.xingZuo)
        solar = Solar(2020, 9, 22)
        assertEquals(solar.toYmd(), "处女", solar.xingZuo)
    }

    @Test
    fun test7() {
        var solar = Solar(2020, 9, 23)
        assertEquals(solar.toYmd(), "天秤", solar.xingZuo)
        solar = Solar(2020, 10, 23)
        assertEquals(solar.toYmd(), "天秤", solar.xingZuo)
    }

    @Test
    fun test8() {
        var solar = Solar(2020, 10, 24)
        assertEquals(solar.toYmd(), "天蝎", solar.xingZuo)
        solar = Solar(2020, 11, 22)
        assertEquals(solar.toYmd(), "天蝎", solar.xingZuo)
    }

    @Test
    fun test9() {
        var solar = Solar(2020, 11, 23)
        assertEquals(solar.toYmd(), "射手", solar.xingZuo)
        solar = Solar(2020, 12, 21)
        assertEquals(solar.toYmd(), "射手", solar.xingZuo)
    }

    @Test
    fun test10() {
        var solar = Solar(2020, 12, 22)
        assertEquals(solar.toYmd(), "摩羯", solar.xingZuo)
        solar = Solar(2021, 1, 19)
        assertEquals(solar.toYmd(), "摩羯", solar.xingZuo)
    }

    @Test
    fun test11() {
        var solar = Solar(2021, 1, 20)
        assertEquals(solar.toYmd(), "水瓶", solar.xingZuo)
        solar = Solar(2021, 2, 18)
        assertEquals(solar.toYmd(), "水瓶", solar.xingZuo)
    }

    @Test
    fun test12() {
        var solar = Solar(2021, 2, 19)
        assertEquals(solar.toYmd(), "双鱼", solar.xingZuo)
        solar = Solar(2021, 3, 20)
        assertEquals(solar.toYmd(), "双鱼", solar.xingZuo)
    }
}
